package com.zretc.personcentre.service;


import com.zretc.common.entity.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@Component
@FeignClient("sns-file-service")
public interface FileServiceClient {
    @PostMapping(value = "/file/upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    RespResult upload(@RequestPart("file") MultipartFile file);


    @GetMapping(value ="/file/downloadjianli",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    RespResult downloadJianli(String url);




}
